package com.loyal.loyalerp.humenresource.categoryDetail.mapper;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.loyal.loyalerp.humenresource.categoryDetail.entity.Gy_ConfigDetail;

@Mapper
public interface Gy_ConfigDetailMapper {

	@Select("select name from gy_configdetail where id =#{id}")
	String selectNameById(Integer id);

	@Select("select Id from gy_configdetail where Name = #{name}")
	Integer selectIdByName(String name);

	int deleteByPrimaryKey(Integer id);

	int insert(Gy_ConfigDetail record);

	int insertSelective(Gy_ConfigDetail record);

	Gy_ConfigDetail selectByPrimaryKey(Integer id);

	Collection<Gy_ConfigDetail> selectCategoryDetail(int id);

	int updateByPrimaryKeySelective(Gy_ConfigDetail record);

	int updateByPrimaryKey(Gy_ConfigDetail record);

	int batchDeleteDetail(List<Integer> list);
}